﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Housing;

public partial class ManageCenter_ManageApply : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserType"] == null)
        {
            Response.Redirect("../Login.aspx");
        }
        if (!IsPostBack)
        {
            Apply apply=new Apply();
            DataSet ds=apply.GetApplyListOrderByUserTypeAndStreet(Session["UserType"].ToString(), "%");
            gvfinallyushow.DataSource = ds;
            gvfinallyushow.DataBind();
        }
    }
    protected void ddlstreet_SelectedIndexChanged(object sender, EventArgs e)
    {
        Apply apply = new Apply();
        DataSet ds = apply.GetApplyListOrderByUserTypeAndStreet(Session["UserType"].ToString(), ddlstreet.SelectedValue);
        gvfinallyushow.DataSource = ds;
        gvfinallyushow.DataBind();
    }
}
